package com.eduhzy.ttw.work.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/11/29 17:26
 */
public class WorkListData implements Parcelable {


    /**
     * content : 曾子曰：“吾日三省吾身——为人谋而不忠乎？与朋友交而不信乎？传不习乎？”
     * creator : 340330
     * endTime : 1543465859000
     * id : 3
     * online : 1
     * pushTime : 1543312521000
     * title : 课外作业：吾日三省吾身
     * workStatus : 2
     */

    private String content;
    private int creator;
    private long endTime;
    private int id;
    private int online;
    private long pushTime;
    private String title;
    /**
     * 作业状态 1：进行中 2：已完成
     */

    private int workStatus;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getCreator() {
        return creator;
    }

    public void setCreator(int creator) {
        this.creator = creator;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public long getPushTime() {
        return pushTime;
    }

    public void setPushTime(long pushTime) {
        this.pushTime = pushTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(int workStatus) {
        this.workStatus = workStatus;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.content);
        dest.writeInt(this.creator);
        dest.writeLong(this.endTime);
        dest.writeInt(this.id);
        dest.writeInt(this.online);
        dest.writeLong(this.pushTime);
        dest.writeString(this.title);
        dest.writeInt(this.workStatus);
    }

    public WorkListData() {
    }

    protected WorkListData(Parcel in) {
        this.content = in.readString();
        this.creator = in.readInt();
        this.endTime = in.readLong();
        this.id = in.readInt();
        this.online = in.readInt();
        this.pushTime = in.readLong();
        this.title = in.readString();
        this.workStatus = in.readInt();
    }

    public static final Creator<WorkListData> CREATOR = new Creator<WorkListData>() {
        @Override
        public WorkListData createFromParcel(Parcel source) {
            return new WorkListData(source);
        }

        @Override
        public WorkListData[] newArray(int size) {
            return new WorkListData[size];
        }
    };
}
